package Formularios;

import org.jvnet.substance.SubstanceLookAndFeel;
import org.jvnet.substance.watermark.SubstanceImageWatermark;





/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Pass.java
 *
 * Created on 13-06-2011, 12:45:32 PM
 */
/**
 *
 * @author user
 */
public class Pass extends javax.swing.JFrame {

    
    /** Creates new form Pass */
                  
    public Pass() 
    {
        
          initComponents();
        SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.CremeCoffeeSkin");
//                SubstanceLookAndFeel.setCurrentWatermark( new SubstanceImageWatermark("C:\\logoCD2.jpg"));
                setLocationRelativeTo(null); 
 
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        cajaPass = new javax.swing.JPasswordField();
        jLabel3 = new javax.swing.JLabel();
        comPrivilegios = new javax.swing.JComboBox();
        cajaRut = new javax.swing.JTextField();
        botonIng = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Bienvenido(a) Sistema para la gestión de inventario y ventas de calzados");
        setBackground(new java.awt.Color(90, 255, 0));
        setForeground(new java.awt.Color(51, 255, 204));
        setResizable(false);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 427, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(36, 168, -1, -1));
        getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(117, 526, -1, -1));

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));
        jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setText("Usuario:");
        jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 330, 50, 20));

        jLabel2.setText("Contraseña:");
        jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 400, 70, 20));
        jPanel2.add(cajaPass, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 400, 210, 30));

        jLabel3.setText("Tipo usuario:");
        jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 360, 70, 20));

        comPrivilegios.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione", "Operativo", "Gerencia Media", "Administrador de Sistema", "Alta Gerencia" }));
        comPrivilegios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comPrivilegiosActionPerformed(evt);
            }
        });
        jPanel2.add(comPrivilegios, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 360, 210, 30));

        cajaRut.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                cajaRutMouseExited(evt);
            }
        });
        jPanel2.add(cajaRut, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 320, 210, 30));

        botonIng.setText("Ingresar");
        botonIng.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonIngActionPerformed(evt);
            }
        });
        jPanel2.add(botonIng, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 440, 101, 30));

        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Logo Calzados Débora.jpg"))); // NOI18N
        jPanel2.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 300, 170));

        jPanel3.setBackground(new java.awt.Color(196, 249, 92));
        jPanel3.setForeground(new java.awt.Color(196, 249, 92));

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 36));
        jLabel4.setForeground(new java.awt.Color(0, 0, 255));
        jLabel4.setText("Sistema para la Gestión de información");

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 30));
        jLabel5.setForeground(new java.awt.Color(0, 0, 255));
        jLabel5.setText("  de Inventario y ventas de calzados");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap(150, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 630, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(140, 140, 140)
                        .addComponent(jLabel5))))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap(13, Short.MAX_VALUE)
                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jLabel5))
        );

        jPanel2.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 190, 780, -1));

        getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 800, 530));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void comPrivilegiosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comPrivilegiosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_comPrivilegiosActionPerformed

    private void cajaRutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cajaRutMouseExited
        // TODO add your handling code here:
    }//GEN-LAST:event_cajaRutMouseExited

    private void botonIngActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonIngActionPerformed
        // TODO add your handling code here:
       
          String x[]={""};
          
          Menu.main(x);  
          
          dispose();
            
            
    }//GEN-LAST:event_botonIngActionPerformed

    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) 
    {
    
  
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Pass().setVisible(true);
            }
        });
        
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonIng;
    private javax.swing.JPasswordField cajaPass;
    private javax.swing.JTextField cajaRut;
    private javax.swing.JComboBox comPrivilegios;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    // End of variables declaration//GEN-END:variables

   
    
    

    
}
